import { pubRequire } from '@utils/public'
// 获取聚合内容列表
export function getSearchList(obj, callBack, errBack) {
  return pubRequire('get', `/colleges`, obj, callBack, errBack)
}
// 添加分类(学院)
export function addCollege(obj, callBack, errBack) {
  return pubRequire('post', `/colleges`, obj, callBack, errBack)
}
// 添加分类(学院)
export function deleteCollege(obj, callBack, errBack) {
  return pubRequire('delete', `/colleges/${obj.id}`, obj, callBack, errBack)
}
// 编辑分类(学院)
export function editCollege(obj, callBack, errBack) {
  return pubRequire('put', `/colleges/${obj.id}`, obj, callBack, errBack)
}
// 获取学院下的子目录列表
export function getSubdirectory(obj, callBack, errBack) {
  return pubRequire('get', `colleges/${obj.id}/menus`, obj, callBack, errBack)
}
